package model;

import java.io.Serializable;

/**
 * 方便对象复制，重写clone()方法
 */
public class Performance implements Serializable,Cloneable {
    private Long id;

    private Long assetsId;

    private String assetsName;

    private Integer timeYear;

    private Integer timeMonth;

    private String time;

    private Double amount;

    private Integer type;

    private Long hospitalId;

    private String createTime;

    private Double usedCounts;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAssetsId() {
        return assetsId;
    }

    public void setAssetsId(Long assetsId) {
        this.assetsId = assetsId;
    }

    public String getAssetsName() {
        return assetsName;
    }

    public void setAssetsName(String assetsName) {
        this.assetsName = assetsName == null ? null : assetsName.trim();
    }

    public Integer getTimeYear() {
        return timeYear;
    }

    public void setTimeYear(Integer timeYear) {
        this.timeYear = timeYear;
    }

    public Integer getTimeMonth() {
        return timeMonth;
    }

    public void setTimeMonth(Integer timeMonth) {
        this.timeMonth = timeMonth;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time == null ? null : time.trim();
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Double getUsedCounts() {
        return usedCounts;
    }

    public void setUsedCounts(Double usedCounts) {
        this.usedCounts = usedCounts;
    }


    @Override
    public Object clone() {
        Performance performance = null;
        try{
            performance = (Performance)super.clone();
        }catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return performance;
    }

}